package com.ctshk.rpc.user.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 *  修改郵箱req
 * </p>
 *
 * @author 李新科
 * @date 2021/4/22 9:10
 */
@Data
@ApiModel
public class UpdateEmailReq implements Serializable {

    @NotBlank(message = "請輸入新的電郵地址")
    @ApiModelProperty(name = "email", value = "新的電郵地址", required = true)
    private String email;

    @NotBlank(message = "請輸入原郵箱驗證碼")
    @ApiModelProperty(name = "oldCode", value = "原電郵地址驗證碼", required = true)
    private String oldCode;

    @NotBlank(message = "請輸入新郵箱驗證碼")
    @ApiModelProperty(name = "newCode", value = "新電郵地址驗證碼", required = true)
    private String newCode;

    @ApiModelProperty(value="用戶Id")
    private Long userId;
}
